package com.example.register1.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.register1.domin.StuClass;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface StudentClassMapper extends BaseMapper<StuClass> {

//    @Select("select * from tb_class where  student_class like CONCAT('%', #{st}, '%')")
//    List<StuClass> getstuClass(String st);
//    @Select("select * from xxx where  name like CONCAT('%', #{name}, '%')") 参考
//  $


    @Select("select  id_class from tb_class")
    List<String> getIdClass();


    @Select("select student_class from tb_class where id_class=#{id_class}")
    List<String> getStudentClass(String id_class);
}
